
<script>
// h函数原名createvnode,意思就是创建节点
import { h } from 'vue'
export default {
  name: 'XtxBread',
  render () {
    const arr = []
    const slots = this.$slots.default()
    slots.forEach(item => {
      arr.push(item)

      arr.push(h('i', { class: 'iconfont icon-angle-right' }))
    })
    return h('div', { class: 'xtx-bread' }, arr)
  }
}
</script>

<style lang="less" >
.xtx-bread {
  display: flex;
  padding: 25px 10px;
    a {
      color: #666;
      transition: all 0.4s;
      &:hover {
        color: @xtxColor;
      }
    }
  i {
    font-size: 12px;
    margin-left: 5px;
    margin-right: 5px;
    line-height: 22px;
    &:last-child{
      display: none;
    }
  }
}
</style>
